package crm.sfh.server;

import cn.bmob.v3.BmobObject;
import crm.sfh.server.entity.EMass;

/**
 * 功能描述:社团
 *
 * @date 2018/5/1
 */
public class SMass extends BmobObject {
    /**
     * 名字
     */
    String name;
    /**
     * 帖子图标
     */
    String head;
    /**
     * 1 热 2 无
     */
    String hot;
    /**
     * 帖子数量
     */
    Long size;

    String content;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getHot() {
        return hot;
    }

    public void setHot(String hot) {
        this.hot = hot;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public EMass getEMass() {
        EMass mass = new EMass();
        mass.setHead(head);
        mass.setMassId(getObjectId());
        mass.setName(name);
        mass.setSize(String.valueOf(size));
        mass.setContent(content);
        return mass;
    }
}
